package com.miaosha.service;

import com.miaosha.error.BusinessException;
import com.miaosha.service.model.UserModel;

public interface UserService {
    //通过用户ID获取用户对象
    UserModel getUserById(Integer id);

    //用户注册
    void register(UserModel userModel) throws BusinessException;

    //用户登陆
    UserModel validateLogin(String telphone, String encrptPassword) throws BusinessException;

}
